package com.github.yoojia.flow;

import com.lmax.disruptor.EventFactory;

/**
 * @author 陈小锅 (yoojiachen@gmail.com)
 * @since 1.0.0
 */
class EventW {

    private Event mEvent;

    private EventW() {

    }

    Event getEvent() {
        return mEvent;
    }

    void setEvent(Event event) {
        mEvent = event;
    }

    //////

    public static class Factory implements EventFactory<EventW> {

        private Factory() {

        }

        @Override
        public EventW newInstance() {
            return new EventW();
        }
    }

    static Factory factory() {
        return new Factory();
    }
}
